# DP: updated class files from the 4.4 branch upto yyyymmdd.

dir=gcc-4_4-branch
tag=gcc_4_4_2_release
branch=gcc-4_4-branch

tmplist=files$$

svn diff --summarize \
        svn://gcc.gnu.org/svn/gcc/tags/$tag \
        svn://gcc.gnu.org/svn/gcc/branches/$branch \
    | grep '\.class$' > $tmplist

sed -n '/^[AM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > neworchanged.list
sed -n '/^[D].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > removed.list
sed -n '/^[^ADM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > unknown.list

echo "new or changed: $(wc -l neworchanged.list | cut '-d ' -f1), removed $(wc -l removed.list | cut '-d ' -f1): , unknown: $(wc -l unknown.list | cut '-d ' -f1)"
tar -c --lzma -f java-class-files.tar.lzma -C $dir -T neworchanged.list
uuencode java-class-files.tar.lzma java-class-files.tar.lzma > java-class-files.tar.lzma.uue

rm -f $tmplist neworchanged.list removed.list unknown.list

